package com.fsu.database.dao;

import java.util.List;

/**
 * read only class containing information about a DVD
 * @author Bonazza
 *
 */
public class DVD extends Media {

	/**
	 * Director of the film
	 */
	private String director;
	/**
	 * Film's genre
	 */
	private String genre;
	
	/**
	 * list of cast members
	 */
	private List<CastMember> cast;
	
	/**
	 * Constructor
	 * @param title
	 * @param year
	 * @param price
	 * @param director
	 * @param genre
	 */
	public DVD(String title, int year, float price, String director, String genre, List<CastMember> cast) {
		super(title, year, price);
		
		this.director = director;
		this.genre = genre;
		this.cast = cast;
	}
	
	/** Accessor methods **/
	public String getDirector() { return director; }
	public String getGenre() { return genre; }
	public List<CastMember> getCast() { return cast; }
	
	public String toString() { 
		String str = super.toString() + "\ndirector: " +
				director + "\ngenre: " + genre + "cast info: \n";
		
		for (CastMember c : cast) {
			str = str + c + "\n";
		}
		
		return str;
	}

}
